ComponentOne DateTimeEditors for UWP
C1DateTime Selector Help / C1DateTimeSelector Task-Based Help / Setting the Minimum and Maximum Calendar Dates
In This Topic
    Setting the Minimum and Maximum Calendar Dates
    In This Topic

    You can change the dates that the user can choose by setting the MinimumDate and MaximumDate properties in code.

    Add the following code to your application to set the minimum and maximum calendar dates:

    C#
    Copy Code
    c1DTS1.MinDate = new DateTime( 1915, 06, 15);
    c1DTS1.MaxDate = new DateTime( 2015, 06, 15);
    

    Visual Basic
    Copy Code
     c1DTS1.MinDate = New DateTime(1915, 6, 15)
     c1DTS1.MaxDate = New DateTime(2015, 6, 15)
    
    See Also